package ioc02;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Author:shixiaojun@itany.com
 * Date:2022/5/16 13:35
 * Version:1.0-SNAPSHOT
 * Description:
 */
public class Test {

    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("ioc02/spring.xml");
        SomeBean someBean = (SomeBean) ac.getBean("someBean");
        SomeBean someBean2 = (SomeBean) ac.getBean("someBean2");
        System.out.println(someBean);
        System.out.println(someBean2);
    }

}
